<div class="deliver-content form-horizontal">
  <!-- 中标者查看 -->

  {if $arrAgreeInfo['seller_uid'] == $gUid}
	  <p class="lead text-center text-success mt_20"><i class="fa fa-check-circle"></i> {if $arrAgreeInfo['seller_status']=='2'&&$arrAgreeInfo['buyer_status']=='2'} 对方已经{else}等待对方{/if}同意交付协议</p>

 	{if $task_status!=9}
 		{if $arrProcessCan['upload']}
	  <div class="form-group">
	    <label class="col-sm-2 control-label">上传文件</label>
	    <div class="col-sm-10">
	      <input type="file" id="uploadfile" name="uploadfile">
		   <input type="hidden"  name="file_ids" id="fileid"  class="form-control">
		   <ul class="affix-list" id="fileList1">
	              </ul>
	      <p class="help-block">最多可添加五个附件，每个大小不超过10M.</p>
	    </div>
	  </div>
	  <div class="deliver-footer">
	    <button class="btn btn-success" type="button" onclick="confirmUpload();">确认交付</button>

        <a href="javascript:report(1,'task','{$arrAgreeInfo[buyer_uid]}','{$arrAgreeInfo[task_id]}','{$arrAgreeInfo[task_id]}');void(0);" class="btn btn-default">
	    	<i class="fa fa-bell"></i> 维权
	    </a>
	  </div>
	  {else}
	  	{$seller_status_arr[$seller_status]}
	  {/if}
	 {/if}
 {else}
	  <!-- 雇主查看 -->
	  <p class="lead text-center text-info mt_20"><i class="fa fa-info-circle"></i> {if $arrAgreeInfo['seller_status']=='2'&&$arrAgreeInfo['buyer_status']=='2'} 对方已经同意交付协议,等待对方上传源文件！{else}等待对方同意交付协议{/if}</p>
	  <p class="lead text-center text-info mt_20">
      {if $gUid == $arrAgreeInfo['buyer_uid']}
	    <a href="javascript:report(1,'work','{$arrAgreeInfo[seller_uid]}','{$arrAgreeInfo[task_id]}','{$arrAgreeInfo[work_id]}');void(0);" class="btn btn-default">
	    	<i class="fa fa-bell"></i> 维权
	    </a>
	{else}
        <a href="javascript:report(1,'task','{$arrAgreeInfo[buyer_uid]}','{$arrAgreeInfo[task_id]}','{$arrAgreeInfo[task_id]}');void(0);" class="btn btn-default">
	    	<i class="fa fa-bell"></i> 维权
	    </a>
	{/if}
	</p>
 {/if}
</div>

<script src="static/js/uploadify/jquery.uploadify.min.js?r={RANDOM_PARA}" type="text/javascript"></script>
<link href="static/js/uploadify/uploadify.css" rel="stylesheet">
<script type="text/javascript">
$(function(){
	setTimeout(function(){
	uploadify({
		text:'上传附件',
		auto:true,
		hide:false,
		exts:'{$strExtTypes}',
		file:'uploadfile',
		limit:5
		},{
			task_id:"{$arrAgreeInfo['task_id']}",
			obj_id:'{$agreeId}',
			objType:'agreement',
				sessionId:sessionId
				},uploadResponse);
	},500);
	});
	function uploadResponse(json){
		$("#fileList1").append('<li class="affix-list-item">'+json.msg.name+'</li>');
	}
</script>